import request from '@/utils/request'

// 查询接入处理器规则列表
export function page(query) {
  return request({
    url: '/v1/GET/pipeline/handle/page',
    method: 'get',
    params: query
  })
}

// 查询接入处理器规则不分页列表
export function list(query) {
  return request({
    url: '/v1/GET/pipeline/handle/list',
    method: 'get',
    params: query
  })
}

// 获取接入处理器规则详情
export function getHandle(id) {
  return request({
    url: '/v1/GET/pipeline/handle/' + id,
    method: 'get'
  })
}

// 新增单个处理器规则
export function insertHandle(data) {
  return request({
    url: '/v1/POST/pipeline/handle',
    method: 'post',
    data: data
  })
}

// 修改单个处理器规则
export function updateHandle(data) {
  return request({
    url: '/v1/PUT/pipeline/handle',
    method: 'put',
    data: data
  })
}

// 删除单个或多个处理器规则
export function delHandle(ids) {
  return request({
    url: '/v1/DELETE/pipeline/handle/' + ids,
    method: 'delete'
  })
}
